<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>禁用鼠标按键</title>
<script type="text/javascript">
	function click() {
		if(event.button == 1) {
			alert("按下了左键");
		} else if(event.button == 2) {
			alert("按下了右键");
		}
	}
	document.onmousedown = click;
</script>
</head>
<body>
	<h1>禁用鼠标按键</h1><hr>
</body>
</html>